package com.wty.shop.service;

import com.github.pagehelper.PageInfo;
import com.wty.shop.common.ServerResponse;
import com.wty.shop.vo.OrderVo;

/**
 * @Author wangtengyu
 * @Create 2018-01-18-12:23
 */
public interface IOrderService {

//    ServerResponse pay(Integer userId, Long orderNo, String path);
//
//    ServerResponse alipayCallback(Map<String, String> params);
//
//    ServerResponse queryOrderPayStatus(Integer userId, Long orderNo);

    ServerResponse createOrder(Integer userId, Integer shippingId);

    ServerResponse cancelOrder(Integer userId, long orderNo);

    ServerResponse getOrderCartProduct(Integer userId);

    ServerResponse getOrderList(Integer userId, int pageNum, int pageSize);

    ServerResponse getOrderDetail(Integer userId, Long orderNo);


    //backend
    ServerResponse<PageInfo> manageList(int pageNum, int pageSize);
    ServerResponse<OrderVo> manageDetail(Long orderNo);
    ServerResponse<PageInfo> manageSearch(Long orderNo, int pageNum, int pageSize);
    ServerResponse<String> manageSendGoods(Long orderNo);

    //hour个小时内未付款的订单进行关闭
    void closeOrder(int hour);
}
